package com.cskaoyan.wordmemorize;

import com.cskaoyan.wordmemorize.dto.admin.OperateLogDTO;
import com.cskaoyan.wordmemorize.dto.admin.PageDTO;
import com.cskaoyan.wordmemorize.request.OperateLogPageRequest;
import com.cskaoyan.wordmemorize.service.AdminLogService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class AdminLogOperation {
    @Autowired
    AdminLogService adminLogService;

    @Test
    public void getLogOperation(){
        OperateLogPageRequest request = new OperateLogPageRequest();
        request.setPageNum(1);
        request.setCount(10);
        PageDTO<OperateLogDTO> operateLogDTOPageDTO = adminLogService.getOperateLogPage(request);
        System.out.println(operateLogDTOPageDTO);
    }
}
